/**
 * @author SargerasWang
 */
package com.sargeraswang.util.ExcelUtil;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * The <code>Model</code>
 * 
 * @author SargerasWang Created at 2014年8月7日 下午5:09:29
 */
@Data
public class Model {
    @ExcelCell(index = 0,valid=@ExcelCell.Valid(allowNull = false))
    private String a;
    @ExcelCell(index = 2,gcode = "gCode2",valid=@ExcelCell.Valid(allowNull = false))
    private String c;
    @ExcelCell(index = 1,gcode = "gCode",fieldName = "年龄",valid=@ExcelCell.Valid(le=120,gt=0))
    private String b;
    @ExcelCell(index = 3,fieldName = "birthday")
    private Date d;

    @ExcelCell(index = 4,fieldName = "地址")
    private String[] addr;
    public Model(){}
    public Model(String a, String c, String b, Date d) {
        this.a = a;
        this.c = c;
        this.b = b;
        this.d = d;
    }
}
